﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Order_SelectPresent" Codebehind="SelectPresent.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <script type="text/javascript">
        function SelectPresent(ctl)
        {
            var radios = document.getElementsByName("radio");
            var value="";
            if(radios.length>0)
            {
                for(var i=0;i<radios.length;i++)
                {
                    if(radios[i].checked)
                    {
                        value=radios[i].value;
                        break;
                    }
                }
                window.returnValue = value;
                window.close();
            }
            else
            {
                window.returnValue = value;
                window.close();
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:DataList ID="dlistPresents" runat="server">
            <ItemTemplate>
                <table>
                    <tr>
                        <td>
                            <input id="rdoSelect" name="radio" type="radio" value='<%# Eval("DJBH") + "$" + Eval("SPDM")%>'/>
                        </td>
                        <td>
                            <asp:Label ID="lblPromotionName" runat="server" Text='<%# Eval("SPDM") + " " + Eval("SPMC") + " " + Eval("CA_NAME")%>'></asp:Label>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:DataList>
        <input id="btnSubmit" type="button" value="确定" onclick="SelectPresent()" />
    </div>
    </form>
</body>
</html>
